<style type="text/css"><!--
th.td6{ font-weight:bold; font-size:16px;}
span.span3da{ color:#cc0000;font-weight:bold;text-decoration:none;}
.cbig{font-size:12px;}
--></style>
<div id="divOnlinebetAll"></div>
<form name="frmMenu" id="frmMenu">
<input type="hidden" value="{playtypestr}" name="playtype" id="playtypestr" />
<input type="hidden" value="{open}" name="dates" id="dates" />
<input type="hidden" value="{open}" name="datee" id="datee" />
<input type="hidden" value="{order}" name="order" id="order" />
<!-- input type="hidden" value="{split}" name="split" id="split" /-->
<input type="hidden" value="{disk}" name="disk" id="disk" />  
<input type="hidden" value="{ratemod}" name="ratemod" id="ratemod" />
<input type="hidden" value="{lotto_id_3d}" name="lotto_id_3d" id="lotto_id_3d" />
<input type="hidden" value="" name="actionBettype" id="actionBettype" />
<input type="hidden" value="" name="actionNum" id="actionNum" />
<input type="hidden" value="" name="actionMP" id="actionMP" />
<input type="hidden" value="0.5" name="addVal" id="addVal" />
<input type="hidden" value="" name="addType" id="addType" />
<input type="hidden" value="" name="addType1Val" id="addType1Val" />
<input type="hidden" value="1" name="onlinesum" />
<input type="hidden" value="{gametype}" name="gametype" id="gametype">
<input type="hidden" value="0" name="method" id="method">
<input type="hidden" value="0" name="subid" id="subid" />
<input type="hidden" value="" id="bid" name="bid" />

<table border=0 cellpadding=0 cellspacing=1 width="990" class="title0 bgImg_{gametype}">
<tr>
  <td> {strPre} :: [ {gametypeStr} &nbsp; {playtype} &nbsp; 即时注单 &nbsp; 下注期数：<b>{round}</b>  开奖日：<b>{open}</b> ] ::{strNext} </td>

  <td>
  排序方式：
  <select name="order" id="order">
  <option value="0">输赢金额</option>
  <option value="1">下注金额</option>
  <option value="2">号码</option>
  </select>
  <span id="orderMsg"></span>
  &nbsp;
  成数：
  <select name="split" id="split">
  <option value="0">全部</option>
  <option value="1">成数</option>
  </select>
  &nbsp;盘类：
  <select name="disk" id="disk">
  <option value="0">全部</option>
  <option value="1">A盘</option>
  <option value="2">B盘</option>
  <option value="3">C盘</option>
  <option value="4">D盘</option>
  </select>
  </td>
  
</tr>
<tr><td colspan="2">
<table width="100%" class=trMenuList>
<tr style="background-color:#FEFFCD">{menu_list_url}</tr>
</table>
</td></tr>
</table>

<table width="950">
<tr>
  <td width="45%">
  <span id="hktime"></span>
  <span id="countdownstr"></span>
  </td>
  
  <td width="35%">
  &nbsp;&nbsp;赔率：
  <select name="ratemod" id="ratemod">
  <option value="0">目前赔率</option>
  <option value="1">平均赔率</option>
  <option value="2">输赢赔率</option>
  </select>
  &nbsp;&nbsp;每：
  <select name="reflashtime" id="reflashtime" >
  <option value="0">不更新</option>
  <option value="10">10秒</option>
  <option value="30">30秒</option>
  <option value="60">60秒</option>
  <option value="120">120秒</option>
  </select>
  更新，还有<span name="reflashtimeMin" id="reflashtimeMin">0</span>秒
  <input type="hidden" value="{lotto_id_3d}" name="lotto_id_3d" id="lotto_id_3d" />
  </td>
  <td>
  <input type="button" value="重新整理" id="btnReflash" />
  </td>
</tr>
</table>
<div id="myDivTblTop"></div>
</form>

<div id="myDivTbl"><span class="bgClc_{gametype}" style="padding:10px; border:1px #926F4A dashed;">Loading.....(资料下载中...请稍後...)<img src='image/loading.gif' /></span></div>
<div id="myDivNow"></div>

<script>
var __roundID = {lotto_id_3d};
var now = new Date(1000 * {timetamp});
var timestap = {timetamplimit};

var myLang = {};
myLang.hktime = '北京时间';
myLang.sDate = '日';
myLang.sDay = '天';
myLang.sHour = '小时';
myLang.sMin = '分钟';
myLang.sSec = '秒';
myLang.sBeforeStop = '距离截止下注时间还有';
myLang.sStop = '已经截止下注';
var _playtype = 'r1';

$.fn.getAjaxDataAuto = function(playtype, _lotto_id){
  //window.open('op.php?op=agent&fp=xmlBetTotal_3d&' + $("form#frmMenu").serialize());
 $.getJSON('op.php?op=agent&fp=xmlBetTotal_3d&' + $("form#frmMenu").serialize() ,function(ratedata){
      var dataLen = 0;
      var urlPre = "";
      var hrefStr = "";
      
      if(ratedata.errormsg != undefined){
        $("div#errormsg").addClass("error").text("No Rate data");
      }else{
          if( myGlobalVal.jsFuname ){
           switch(playtype){
              case 'r1': show_r1_n5(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r1p': show_r1p_n5(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r2': show_r2p_n5(_lotto_id, playtype, ratedata, _myHeader); break;
			  case 'nn': show_nn(_lotto_id, playtype, ratedata, _myHeader); break;
			  case 'sh': show_sh(_lotto_id, playtype, ratedata, _myHeader); break;
              //case 'r1all': show_all(); break;
            }
          }else{
            switch(playtype){
              case 'r1': show_r1(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r2f': show_2face_n5(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r1p': show_r1p(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r2p': show_r2p(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r2': show_r2(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r2a': show_r2a(_lotto_id, playtype, ratedata, _myHeader2); break;
              case 'r3p': show_r3p(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r3': show_r3(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r3a': show_r3a(_lotto_id, playtype, ratedata, _myHeader2); break;
              case 'g3': show_g3(_lotto_id, playtype, ratedata, _myHeader, true); break;
              case 'g6': show_g3(_lotto_id, playtype, ratedata, _myHeader, false); break;
              case 'rcmp': show_r3p(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r1pass': show_r1pass(_lotto_id, playtype, ratedata, _myHeader); break;
              case 'r1bs': show_r1bs(_lotto_id, playtype, ratedata, _myHeader2); break;
              case 'r1o': show_r1o(_lotto_id, playtype, ratedata, _myHeader2); break;
              //case 'r1all': show_all(); break;
            }
          
          }
          
          // set url
          $("span.span3da").click(function(){
            $(this).setSpanAUrl();
          });
          
          // show the menu bar for amount of each page
          $().showPgTotalAmount(ratedata.pgTotalAmountStr);

          // can change again
          $("form#frmMenu input").add("form#frmMenu select").removeAttr("disabled");
          
          // change tr color
          //$().chgTrColor();
      }
  });
};
</script>
<script src="scr_3d/{jsLang}/obet.js"></script>